window.onload = function() {
	//alert(NHUtil.typeOf(true));
	//alert(NHUtil.typeOf(null));
	//alert(NHUtil.typeOf(new Date()));
	//alert(NHUtil.typeOf({name:"alin"}));
	//alert(NHUtil.typeOf([1, 2]));
	//alert({name:1}.constructor == Object);
	//alert([].constructor == Object);
	var ele_table = $("table_main");
	//alert(ele_table.constructor);
	//NHUtil.debug(typeof(ele_table));
	for (var i = 0; i < 10; i ++) {
		ele_table.appendChild(Xsheet.createRow(i));
	};
}
function Xsheet(){};
Xsheet.createRow = function() {
	var row = document.createElement("tr");
	for (var i = 0 ; i < 10; i ++) {
		row.appendChild(Xsheet.createCell(i));
	}
	return row;
};
Xsheet.createCell = function(value) {
	var td = document.createElement("td");
	td.innerHTML = value;
	td.onclick = function() {
		NHUtil.debug(this.parentNode.rowIndex + ":" + this.cellIndex);
	}
	return td;
};
